<form class="form-horizontal" method="post" action="/user/profile/info">
  <div class="form-group">
    <label class="col-sm-2 control-label">性别</label>
    <div class="col-sm-4 row">
      <?php switch($account_info -> sex) { 
        case '0':
          echo '<label class="col-sm-2"><input type="radio" name="sex" value="1">男</label>';
          echo '<label class="col-sm-2"><input type="radio" name="sex" checked value="0">女</label>';
          echo '<label class="col-sm-2"><input type="radio" name="sex" value="2">隐藏</label>';
          break;
        case '1':
          echo '<label class="col-sm-2"><input type="radio" name="sex" checked value="1">男</label>';
          echo '<label class="col-sm-2"><input type="radio" name="sex" value="0">女</label>';
          echo '<label class="col-sm-2"><input type="radio" name="sex" value="2">隐藏</label>';
          break;
        default:
          echo '<label class="col-sm-2"><input type="radio" name="sex" value="1">男</label>';
          echo '<label class="col-sm-2"><input type="radio" name="sex" value="0">女</label>';
          echo '<label class="col-sm-2"><input type="radio" name="sex" checked value="2">隐藏</label>';
      } ?>
    </div>
  </div>

  <div class="form-group">
    <label class="col-sm-2 control-label">地址</label>
    <div class="col-sm-10 row" id="distpicker">
      <div class="col-sm-4"><select name="province_code" class="form-control"></select></div>
      <div class="col-sm-4"><select name="city_code" class="form-control"></select></div>
      <div class="col-sm-4"><select name="district_code" class="form-control"></select></div>
    </div>
  </div>
  
  <div class="form-group">
    <label class="col-sm-2 control-label">详细地址</label>
    <div class="col-sm-4"><input type="text" name="address_detail" value="<?php echo $account_info -> address_detail; ?>" class="form-control"></div>

    <label class="col-sm-2 control-label">身份证号</label>
    <div class="col-sm-4"><input type="text" name="identity_card" value="<?php echo $account_info -> identity_card; ?>" class="form-control"></div>
  </div>

  <div class="form-group">
    <label class="col-sm-2 control-label">银行名称</label>
    <div class="col-sm-4"><input type="text" name="bank_name" value="<?php echo $account_info -> bank_name; ?>" class="form-control"></div>

    <label class="col-sm-2 control-label">银行账号</label>
    <div class="col-sm-4"><input type="text" name="bank_account" value="<?php echo $account_info -> bank_account; ?>" class="form-control"></div>
  </div>

  <div class="form-group">
    <label class="col-sm-2 control-label">开户人姓名</label>
    <div class="col-sm-4"><input type="text" name="bank_account_name" value="<?php echo $account_info -> bank_account_name; ?>" class="form-control"></div>

    <label class="col-sm-2 control-label">开户支行</label>
    <div class="col-sm-4"><input type="text" name="bank_deposit" value="<?php echo $account_info -> bank_deposit; ?>" class="form-control"></div>
  </div>

  <button type="submit" class="btn btn-primary">确认修改</button>
</form>